package com.example.controller;

import com.example.pojo.OaAbs;
import com.example.service.IOaAbsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/abs")
@CrossOrigin
public class OaAbsController {
    @Autowired(required = false)
    IOaAbsService oaAbsService;

    @RequestMapping("/search")
    public java.util.List<OaAbs> oaAbsList(OaAbs oaAbs){ return oaAbsService.oaAbsList(oaAbs); }

    @RequestMapping("/insert")
    public int oaAbsInsert(OaAbs oaAbs){ return oaAbsService.oaAbsInsert(oaAbs); }

    @RequestMapping("/updata")
    public int oaAbsUpdata(OaAbs oaAbs){ return oaAbsService.oaAbsUpdata(oaAbs); }
}
